
        <ol class="breadcrumb">
          <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;{{lang('dashboard')}}</a></li>
          <li class="active">{{lang('want')}}</li>
        </ol>          
       <hr>
       <div>
       <a class="btn btn-primary" href="{{$this->Html->url(array('action'=>'add'))}}">{{lang('new_wants')}}</a>
       </div>
		
    <table class="table table-striped table-hover">
    <?php
        $tableHeaders =  $this->Html->tableHeaders(array(			
            lang('title'),
            lang('price'),
            lang('end_date'),
			lang('summary'),
            lang('opration'),
        ));

        echo '<thead>'.$tableHeaders.'</thead>';

        $rows = array();
        foreach ($datalist AS $item) {
            $actions = ' ' . $this->Html->link(lang('edit'), array('controller'=>'wants','action' => 'edit', $item['Want']['id']));
			
            $rows[] = array(               
                $item['Want']['name'],
				$item['Want']['price'].'~'.$item['Want']['max_price'],
                $item['Want']['end_date'],
				$item['Want']['summary'],
                $actions,
            );
        }
        echo $this->Html->tableCells($rows);

		echo '<thead>'.$tableHeaders.'</thead>';
    ?>
    </table>
    {{$page_navi}}